package org.dromara.ai.domain.bo;

import org.dromara.ai.domain.AiCategory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 作品分类业务对象 ai_category
 *
 * @author Tang
 * @date 2024-12-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AiCategory.class, reverseConvertGenerate = false)
public class AiCategoryBo extends BaseEntity {

    /**
     * 分类ID
     */
    @NotNull(message = "分类ID不能为空", groups = { EditGroup.class })
    private Long categoryId;

    /**
     * 分类名称
     */
    @NotBlank(message = "分类名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryName;

    /**
     * 父ID
     */
    private Long parentCategoryId;


}
